package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

import java.math.BigDecimal;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 仓库-物资业务对象 emg_goods
 *
 * @author ruoyi
 * @date 2023-11-10
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class EmgGoodsBo extends BaseEntity {

    /**
     *
     */
    @NotNull(message = "不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 所属单位
     */
     private Long deptId;

    /**
     * 仓库
     */
    @NotNull(message = "仓库不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long warehouseId;

    /**
     * 物资类型 数据
     */
    @NotBlank(message = "物资类型 数据不能为空", groups = { AddGroup.class, EditGroup.class })
    private String classId;

    /**
     * 物资名称
     */
    @NotBlank(message = "物资名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 规格
     */
    @NotBlank(message = "规格不能为空", groups = { AddGroup.class, EditGroup.class })
    private String spec;

    /**
     * 数量
     */
    @NotNull(message = "数量不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal quantity;

    /**
     * 单位
     */
    @NotBlank(message = "单位不能为空", groups = { AddGroup.class, EditGroup.class })
    private String unit;

    /**
     * 单价
     */
    @NotNull(message = "单价不能为空", groups = { AddGroup.class, EditGroup.class })
    private BigDecimal price;

    /**
     * 物资存放地址
     */
//    @NotBlank(message = "物资存放地址不能为空", groups = { AddGroup.class, EditGroup.class })
    private String address;

    /**
     * 描述
     */
//    @NotBlank(message = "描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 状态
     */
//    @NotBlank(message = "状态不能为空", groups = { AddGroup.class, EditGroup.class })
    private String status;


}
